#include <iostream>
using namespace std;
#include <string>


int main(){

    int n;
    cin >> n;
    string ret;
    auto nString = std::to_string(n);
    int prev = 0;
    for (int i = 0; i < nString.size(); i++){
        if ((nString[i] - '0') % 2 == 0 && i == prev){
            prev++;
            continue;
        }
        else if((nString[i] - '0') % 2 == 0) ret += '0';
        else ret += '1';
    }
    if (ret.empty()) ret = '0';
    cout << ret << endl;
    return 0;
}
